﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace UIExpert.Web.Controllers
{
    public class PageController : Controller
    {
        public ActionResult GoTo(string module, string category, string page)
        {
            String path = "/Views/" + module + "/" + category + "/" + page + ".cshtml";
            ViewBag.Path = path;

            return View(path);
        }

        public ActionResult GoPage(string module, string category)
        {
            String path = "/Views/" + module + "/" + category + ".cshtml";
            ViewBag.Path = path;

            return View(path);
        }
    }
}
